<?php $this->load->view("partial/header"); ?>
<br />
<h3><?php echo lang('common_welcome_message'); ?></h3>
<div id="home_module_list">
    <?php
    foreach ($allowed_modules->result() as $module) {
        ?>
        <div class="module_item">
            <a href="<?php echo site_url("$module->module_id"); ?>">
                <img src="<?php echo base_url() . 'images/menubar/' . $module->module_id . '.png'; ?>" border="0" alt="Menubar Image" />
                <span><?php echo lang("module_" . $module->module_id) ?></span>
            </a>
            - <span><?php echo lang('module_' . $module->module_id . '_desc'); ?></span>
        </div>
        <?php
    }
    ?>
    <div class="module_item">
        <a href="<?php echo base_url(); ?>index.php/payment">
            <img border="0" alt="Menubar Image" src="<?php echo base_url(); ?>/images/menubar/payment.png">
            <span>Payments</span>
        </a>
        - <span>Manage Payments</span>
    </div>
    <div class="module_item">
        <a href="<?php echo base_url(); ?>index.php/laybys">
            <img border="0" alt="Menubar Image" src="<?php echo base_url(); ?>/images/menubar/laybys.png">
            <span>Manage Laybys</span>
        </a>
        - <span>Manage Laybys</span>
    </div>
<!--    <div class="module_item">
        <a href="<?php echo base_url(); ?>index.php/layby">
            <img border="0" alt="Menubar Image" src="<?php echo base_url(); ?>/images/menubar/laybys.png">
            <span>Sale Laybys</span>
        </a>
        - <span>Sale Laybys</span>
    </div>-->
</div>
<?php $this->load->view("partial/footer"); ?>